package com.jason.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    LOGIN_ERROR(500,"用户名或者密码错误"),
    EMPTY_STOCK(500,"库存不足"),
    REPEATED_ERROR(500,"重复购买"),
    UPDATE_ERROR(500,"更新密码失败"),
    SESSION_ERROR(500,"用户不存在"),
    ORDER_NOT_EXIST(500,"订单不存在"),
    REQUEST_ILLEGAL(500,"请求非法")
    ;
    private final Integer code;
    private final String message;
}

